/**
 \* Created with IntelliJ IDEA.
 \* @author: 彭诗杰
 \* @time: 2019/9/2 20:51
 \* Description: screen 模拟数据_测试用
 \*/

export default {
  mockFactorAlarms: () => ({
    "factorAlarms|10": [{
      'area': '@cname',
      'factor|1': ['COD', 'PH'],
      'time': '@date("yyyy-MM-dd")',
      'level|1': ['一级报警', '二级报警']
    }]
  }),

  mockDeviceAlarms: () => ({
    "deviceAlarms|10": [{
      'area': '@cname',
      'code|1': ['W01001', 'W02101', 'B01', '060'],
      'time': '@date("yyyy-MM-dd")'
    }]
  }),

  mockComprehensiveData: () => ({
    'comprehensive': {
      'totalAlarmNum|1-20': 1,
      'handledAlarmNum|1-5': 1,
      'unhandledAlarmNum|1-5': 1,
      'totalDevNum|1-20': 1,
      'onlineDevNum|1-5': 1,
      'offlineDevNum|1-5': 1,
    }
  }),

  mockDeviceFaulty: () => ({
    'deviceFaulty': {
      'normal|1-20': 1,
      'faulty|1-20': 1
    }
  }),

  mockFactorExceeded: () => ({
    'factorExceed': {
      'normal|1-20': 1,
      'exceeded|1-20': 1
    }
  })
}
